package com.lottery.game.runner.v2;

import com.lottery.game.core.model.dto.game.GameTypePlayingRelationTO;
import com.lottery.game.core.modules.entity.game.GameRoom;

import java.io.Serializable;

import lombok.Data;

@Data
public class RoomCoreParam implements Serializable {

	private String roomType;
	private Boolean manual;
	private Integer initExpect;
	private Integer initRemainTime;
	private Integer duration;
	private Integer gameTime;
	private GameRoom gameRoom;
	private GameTypePlayingRelationTO relationTO;

	public RoomCoreParam(String roomType, GameRoom gameRoom, boolean manual) {
		super();
		this.roomType = roomType;
		this.gameRoom = gameRoom;
		this.manual = manual;
		this.duration = gameRoom.getDuration();
		this.gameTime = gameRoom.getGameTime();
	}

	public RoomCoreParam(String roomType, boolean manual, Integer initExpect, Integer initRemainTime,GameRoom gameRoom,GameTypePlayingRelationTO gameTypePlayingRelationTO) {
		super();
		this.roomType = roomType;
		this.manual = manual;
		this.initExpect = initExpect;
		this.initRemainTime = initRemainTime;
		this.gameRoom = gameRoom;
		this.relationTO = gameTypePlayingRelationTO;
	}

}
